Saltar al contenido principal

Installation

The Flash widget is a floating widget on a client's webpage entry point for actions like:

  • Instant video call to an agent
  • Calendar video call to an agent
  • Chat with an agent
  • Customize user journey through a triage with CTAs.

Widget Installation

Install a loader application (code available on your VMS) on all the pages where your widget will appear:

<script>
(function (o, n, l, i, v, e) {
v = o.createElement(n);v.onload = i;v.async = 1;v.src = l;
e = o.getElementsByTagName(n)[0];e.parentNode.insertBefore(v, e);
})(document, 'script', 'https://cdn.onlive.site/loader/v1/loader.min.js', function () {
window.onliveManager.loader.load("Your instalation id");
});
</script>

Set up the Flash widget installation on your VMS (this will be facilitated by the customer success team). You can configure, among other things, the position of the widget, and whether the widget is going to be open or closed by default.

Widget behavioral customization

Once the widget is loaded on the target page, you can control its visibility by accessing the object:

onliveManager.services['onliveFlashWidget'].IButton.hidden = true // Hide the widget button
onliveManager.services['onliveFlashWidget'].IButton.hidden = false // Show the widget button

When the object is available on the page, an event is triggered to which you can subscribe:

window.addEventListener("onlive-meet-ready", () => console.log('ready!!!'))